//
//  ThreadMessage.m
//  MyFamework
//
//  Created by carlos on 12-10-1.
//  Copyright (c) 2012年 carlos. All rights reserved.
//

#import "ThreadMessage.h"

@implementation ThreadMessage

//初始化方法
+(ThreadMessage *)createThreadWithReturnMethod:(SEL)returnUIMethod1 withInterfaceDefine:(InterfaceDefine)interfaceDefine1{
    ThreadMessage *threadMsg = [[ThreadMessage alloc]init];
    threadMsg.returnUIMethod = returnUIMethod1;
    threadMsg.interfaceDefine = interfaceDefine1;
    return  threadMsg;
}

//初始化方法
+(ThreadMessage *)createThreadWithInterfaceDefine:(InterfaceDefine)interfaceDefine{
    
    return [self createThreadWithReturnMethod:nil withInterfaceDefine:interfaceDefine];
}
@end
